import 'package:netstorage/model/CommonModel.dart';

class Hotel {
  String? startColor;
  String? endColor;
  CommonModel? mainItem;
  CommonModel? item1;
  CommonModel? item2;
  CommonModel? item3;
  CommonModel? item4;

  Hotel({this.startColor,this.endColor,this.mainItem,this.item1,this.item2,this.item3,this.item4});
  factory Hotel.fromJson(Map<String,dynamic> map){
    return Hotel(
      startColor:map['startColor'],
      endColor:map['endColor'],
      mainItem:CommonModel.fromJson(map['mainItem']),
      item1:CommonModel.fromJson(map['item1']),
      item2:CommonModel.fromJson(map['item2']),
      item3:CommonModel.fromJson(map['item3']),
      item4:CommonModel.fromJson(map['item4']),
    );
  }

  Map<String,dynamic> toJson(){
    Map<String,dynamic> ret = {};
    ret['startColor'] = startColor;
    ret['endColor'] = endColor;
    ret['mainItem'] = mainItem;
    ret['item1'] = item1;
    ret['item2'] = item2;
    ret['item3'] = item3;
    ret['item4'] = item4;
    return ret;
  }

  @override
  String toString() {
    return 'startColor:$startColor,endColor:$endColor,mainItem:${mainItem.toString()},'
        'item1:${item1.toString()},item2:${item2.toString()},item3:${item3.toString()},item4:${item4.toString()}';
  }
}